class RateCLI
  module Delete
    def delete(target, to_delete)
      yes = @sui.ask_yes_no("Going to delete %s %s [%s]. Sure?" % [target, Rainbow(to_delete['name']).bright, 
                                    Rainbow(short_uuid(to_delete['uuid']))])
      if yes
        result = @client.delete(target: target, uuid: to_delete['uuid'])
        if result.success?
          success "Wow! deleted"
        else
          error "WTF, failed: #{result.message}"
        end
      end
    end
  end
end